<template>
  <div class="app-container">
    <ht-search-form
      v-show="showSearch"
      :dictMap="dictMap"
      :queryParams="queryParams"
      :outputQueryParams="queryParams"
      :formOptions="formOptions"
      :advOptions="[]"
      defaultEventKey="entryTable"
    ></ht-search-form>
    <ht-table
      ref="dataTable"
      :showSerialNumber="false"
      :multi-select="false"
      :dictMap="dictMap"
      :reqConfig="reqConfig"
      :queryParams="queryParams"
      :tableBindColumns="tableBindColumns"
      defaultEventKey="entryTable"
    ></ht-table>
  </div>
</template>
<script>
import { apiUrlConfig } from "@/api/cnaps/ccms/913/cis_agent_bank_query.js";
import { listPageMixin } from "@/libs/listPageMixin";
export default {
  name: "CisAgentBankQuery",
  mixins: [listPageMixin],
  components: {},
  data() {
    return {
      reqConfig: apiUrlConfig,
      dataList: [],
      //数据字典
      searchFormDictList: [],
      showSearch: true,
      // 查询参数
      queryParams: {
        cisBrno: "",
        bepsProxybank: "",
      },
      formOptions: [],
      tableBindColumns: [
        {
          label: `票交机构行号`,
          prop: "cisBrno",
          align: "center",
        },
        {
          label: `小额代理行号`,
          prop: "bepsProxybank",
          align: "center",
        },
        {
          label: `小额代理行名`,
          prop: "bepsProxybankName",
          align: "center",
        },
        {
          label: `生效日期`,
          prop: "effectDate",
          align: "center",
          type: "date",
        },
      ],
    };
  },
  mounted() {
    this.formOptions = [
      {
        type: "input",
        prop: "cisBrno",
        defaultAttr: {
          label: "票交机构行号",
          placeholder: "请输入票交机构行号",
        },
      },
      {
        type: "input",
        prop: "bepsProxybank",
        defaultAttr: {
          label: "小额代理行号",
          placeholder: "请输入小额代理行号",
        },
      },
    ];
  },
  methods: {},
};
</script>
